package cn.ycc1.boot3redis.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ycc
 * @date 2025/11/20
 */
@Slf4j
@RequestMapping("/test")
@RestController
public class TestController {
    /**
     * 返回Redis测试问候语
     *
     * @return 返回"hello, redis"字符串
     */
    @GetMapping("/hello")
    public String hello() {
        log.info("hello");
        return "hello, redis";
    }

    @GetMapping("/test1")
    public String test1() {
        return "test1";
    }
}
